package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资产信息对象 asset_info
 * 
 * @author yepanpan
 * @date 2024-12-20
 */
@Data
public class AssetInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String STATUS_NORMAL = "0"; //正常
    public static final String STATUS_FAULT = "1"; //故障
    public static final String STATUS_MAINTAIN = "2"; //维修中
    public static final String STATUS_LEASEHOLD = "6"; //出租中
    public static final String STATUS_SALE = "7"; //已出售
    public static final String STATUS_LOSE = "8"; //已丢失
    public static final String STATUS_SCRAP = "9"; //已报废

    /** 自增长主键ID */
    private Long id;

    /** 资产分类 */
    @Excel(name = "资产分类")
    private String cateName;
    private Long cateId;

    /** 资产编码 */
    @Excel(name = "资产编码")
    private String num;

    /** 厂商 */
    @Excel(name = "厂商")
    private String orgName;
    private Long orgId;

    /** 型号 */
    @Excel(name = "型号")
    private String modelName;
    private Long modelId;

    /** 预留字段1 */
    //@Excel(name = "预留字段1")
    private Long num1;

    /** 预留字段2 */
    //@Excel(name = "预留字段2")
    private BigDecimal num2;

    /** 预留字段3 */
    //@Excel(name = "预留字段3")
    private String text1;

    /** 预留字段4 */
    //@Excel(name = "预留字段4")
    private String text2;

    /** 预留字段5 */
    //@Excel(name = "预留字段5")
    private String file1;

    /** 预留字段6 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "预留字段6", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date1;

    /** 当前价值 */
    @Excel(name = "当前价值")
    private BigDecimal price;

    /** 仓库 */
    @Excel(name = "仓库")
    private String houseName;
    private Long houseId;

    /** 图例 */
    //@Excel(name = "图例")
    private String imgs;

    /** 是否在库 */
    @Excel(name = "是否在库", dictType = "sys_yes_no", comboReadDict = true)
    private String inStore;

    /** 是否在用 */
    @Excel(name = "是否在用", dictType = "sys_yes_no", comboReadDict = true)
    private String isUse;

    /** 资产状态 */
    @Excel(name = "资产状态", dictType = "asset_status", comboReadDict = true)
    private String status;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String deptName;
    private Long deptId;

    /** 使用人 */
    @Excel(name = "使用人")
    private String userName;
    private Long userId;


    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 报废时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报废时间", width = 30, dateFormat = "yyyy-MM-dd", type = Excel.Type.EXPORT)
    private Date scrapTime;
}
